<template>
  <div class="app-container">
    <div class="hor mg-b-10">
      <el-button type="primary" :loading="loading" @click="onClickScan()" class="mg-l-20">扫描app修改
      </el-button>
    </div>
    <div class="ver mg-l-20 mg-t-40">
      <div class="font18 font-text-color-main-title">{{response.message}}</div>
      <div class="font14 font-text-color-main_body" v-for="(item,index) in response.data"
           :key="index">
        {{item}}
      </div>
    </div>
  </div>

</template>
<style>
</style>
<script>
const request = require('@/api/webapp.js')
export default {
  filters: {
    // statusFilter(status) {
    //   const statusMap = {
    //     published: 'success',
    //     draft: 'gray',
    //     deleted: 'danger'
    //   }
    //   return statusMap[status]
    // }
  },
  data() {
    return {
      page: 1,
      size: 20,
      total: 0,
      autoHeight: 800,//根据屏幕高度自动计算的高度

      loading: false,
      response: {}
    }
  }, beforeMount() {
    this.authHeight = document.body.scrollHeight - 190
  }, mounted() {
  },
  created() {

  },
  methods: {
    onClickScan() {
      this.scan()
    },
    scan() {
      const data = new FormData()

      this.loading = true
      request.scanAppWeb(data).then(response => {
        this.response = response
        this.loading = false
        console.log(this.response)
      })
    }
  }
}
</script>
